cs-invoice-processing-sapi icon

cs-invoice-processing-sapi

(0 reviews)

o6a-urj/πŸ“š Data Dictionary - CS Utilities System API Service

This section describes the attributes and usage of the Invoice Processing API Service.


πŸ’‚οΈ Base Information

  • API Title: Invoice Processing API Service
  • Version: v1
  • Base URL:https://cs-invoice-processing-sapi-{env}-v1.us-e1.cloudhub.io/api/Replace {env} with:
    • dev (Development)
    • qa (Quality Assurance)

πŸ”‘ Authentication

Required Headers

HeaderTypeDescription
AuthorizationStringBearer token in the format Bearer {{API_KEY}}
client_idStringUnique identifier for API clients
  • Authorization
    • Length: 36 - 37 characters
    • Example: Bearer abcdefghijklmnopqrstuvwxyz1234567890
  • client_id
    • Length: 32 - 36 characters
    • Example: 123e4567-e89b-12d3-a456-426614174000

πŸ“Œ These headers are required in all requests.


πŸ“‚ Endpoints

πŸ“„ GET /documents/pending

Returns the unique identifiers of the documents that are pending sending to the ERP.

Query Parameters
NameTypeRequiredDescription
customerTaxIDStringβœ…Tax ID of the receiving company
documentTypeCodeString❌Type of document to retrieve
Response

Returns a list of document identifiers.

πŸ“ Example: examples/responses/get-pendingDocuments.json


πŸ“„ GET /documents/returnDocuments

Returns an invoice’s data structure in XML format.

Query Parameters
NameTypeRequiredDescription
customerTaxIDString❌Receiving company ID
idInvoiceNumber❌Invoice identifier
filingNumberString❌Document filing number
Response

Returns a document's full structure.

πŸ“ Example: examples/responses/get-documents.json


πŸ“„ GET /documents/attachments

Returns the files provided by the supplier for processing the invoice.

Query Parameters
NameTypeRequiredDescription
customerTaxIDString❌Receiving company ID
idInvoiceNumber❌Invoice identifier
filingNumberString❌Document filing number
Response

πŸ“ Example: examples/responses/get-attachments.json


πŸ“„ POST /documents/processed

Marks the document as processed by the ERP.

Request Body

πŸ“ Example: examples/requests/post-processed.json

πŸ“„ Type: lib-types.post-processed

Response

πŸ“ Example: examples/responses/post-processed.json

πŸ“„ Type: lib-types.post-processed-response


πŸ“„ POST /documents/status

Updates the status of an invoice after delivery to the ERP.

Request / Response

πŸ“ Request: examples/requests/post-status.json

πŸ“ Response: examples/responses/post-status.json

πŸ“„ Type: lib-types.post-status


πŸ“„ POST /documents/suppliers

Creates suppliers in Invoway.

Request / Response

πŸ“ Request: examples/requests/post-suppliers.json

πŸ“ Response: examples/responses/post-suppliers.json

πŸ“„ Type: lib-types.post-suppliers


πŸ“„ POST /suppliers/externalUser

Creates a user for a supplier using external authentication.

Request / Response

πŸ“ Request: examples/requests/post-suppliers-externalUser.json

πŸ“ Response: examples/responses/post-suppliers-externalUser.json


πŸ“„ GET /digital-wallets/send-payments-orders

Sends payment orders.

Query Parameters
NameTypeRequiredDescription
markToSendIntegerβœ…Indicates documents to be sent

πŸ“ Response: examples/responses/get-send-payments-orders.json

πŸ“„ Type: lib-types.get-send-payments-orders-response


πŸ“„ POST /digital-wallets/receive-payments-orders

Receives the result of processed payment orders from digital wallets.

πŸ“ Request: examples/requests/post-receive-payments-orders.json

πŸ“ Response: examples/responses/post-receive-payments-orders.json

πŸ“„ Type: lib-types.post-receive-payments-orders


πŸ“Š Common Parameters

ParameterTypeDescriptionRequired
client_idStringAPI client identifierβœ…
AuthorizationStringBearer token for authenticationβœ…

πŸ” Security Schemes

Client ID Enforcement

FieldTypeRequiredLengthRegex
client_idStringYes32 - 36[a-zA-Z0-9]
client_secretStringYes32 - 64[a-zA-Z0-9]

OAuth 2.0

FieldTypeRequiredLengthRegex
AuthorizationStringYes36 - 37[a-zA-Z0-9-_.]

⚠️ Error Codes

CodeDescriptionSuggested Solution
400Bad RequestCheck request syntax and parameters.
401UnauthorizedValidate authentication credentials.
404Not FoundConfirm the endpoint URL.
500Internal Server ErrorRetry or contact technical support.

⚠️ Error Codes

CodeDescriptionSuggested Solution
400Bad RequestCheck request syntax and parameters.
401UnauthorizedValidate authentication credentials.
404Not FoundConfirm the endpoint URL.
500Internal Server ErrorRetry or contact technical support.

πŸ“ž Support

For assistance, contact the Integration Services and Applications Coordination team.

Email: epalma@fg


Last updated: April 2025


Reviews